-- GENERATED SPELL FOR [Sporeggar Sporebat] --


function spell0_22085(pUnit, Event) --@Spore Splash,n/a--
pUnit:FullCastSpellOnTarget(38285,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22085', 17000, 1)
end

function Sorts_22085(pUnit, Event)
local choix_sorts_22085 = math.random(0, 0)
if choix_sorts_22085 == 0 then
pUnit:RegisterEvent('spell0_22085', 1, 1)
end
end

function mob22085_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22085', math.random(1500, 3000), 1)
end

function mob22085_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22085_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22085_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22085, 1, 'mob22085_Action')
RegisterUnitEvent(22085, 2, 'mob22085_Leave')
RegisterUnitEvent(22085, 3, 'mob22085_Kill')
RegisterUnitEvent(22085, 4, 'mob22085_Die')
